package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-01-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "BaseBankBinSaveDTO", description = "")
public class BaseBankBinSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 卡BIN
     */
    @ApiModelProperty(value = "卡BIN")
    @NotEmpty(message = "卡BIN不能为空")
    @Length(max = 32, message = "卡BIN长度不能超过32")
    private String bankBin;
    /**
     * 长度
     */
    @ApiModelProperty(value = "长度")
    @NotNull(message = "长度不能为空")
    private Integer length;
    /**
     * 卡号长度
     */
    @ApiModelProperty(value = "卡号长度")
    @NotNull(message = "卡号长度不能为空")
    private Integer cardLength;
    /**
     * 卡类型
     */
    @ApiModelProperty(value = "卡类型")
    @NotEmpty(message = "卡类型不能为空")
    @Length(max = 2, message = "卡类型长度不能超过2")
    private String cardType;
    /**
     * 卡号模板
     */
    @ApiModelProperty(value = "卡号模板")
    @NotEmpty(message = "卡号模板不能为空")
    @Length(max = 32, message = "卡号模板长度不能超过32")
    private String cardId;
    /**
     * 卡BIN类型
     */
    @ApiModelProperty(value = "卡BIN类型")
    @NotEmpty(message = "卡BIN类型不能为空")
    @Length(max = 2, message = "卡BIN类型长度不能超过2")
    private String bankBinType;
    /**
     * 银行简称
     */
    @ApiModelProperty(value = "银行简称")
    @NotEmpty(message = "银行简称不能为空")
    @Length(max = 32, message = "银行简称长度不能超过32")
    private String bankAbbr;
    /**
     * 银行名称
     */
    @ApiModelProperty(value = "银行名称")
    @Length(max = 32, message = "银行名称长度不能超过32")
    private String bankName;
    /**
     * 银行代码
     */
    @ApiModelProperty(value = "银行代码")
    @Length(max = 32, message = "银行代码长度不能超过32")
    private String bankCode;

}
